package com.wwmz.spring.simple.annotation.injections.qualifier;


import com.wwmz.spring.simple.project.service.MyService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by wumz on 2020/9/27 10:59
 */
public class MyTest {


    @Test
    public void test(){
        ApplicationContext app = new AnnotationConfigApplicationContext(MyConfig.class);

//        MyService service = app.getBean(MyService.class);
        Object dao = app.getBean("dao");
        System.out.println(dao);
//        service.print();
    }
}
